<?php

/**
 * @author Jeevan Tomson
 * @copyright 2011
 */

    include_once("includes/appdata.php");
    require_once(APP_DIRECTORY."/php/include.php");

    $lang = 2;   
    $lblMgr = new LabelManager($lang); 
    
    $rs = $db->Execute("select * from labellang where labelid = 10");

    printObject($rs->fields);
    
    $labels = array();
    
    $langArray = array();
    
    $langArray[0]["id"] = 2;
    $langArray[0]["value"] = "FR TEST NAME";
    
    $langArray[1]["id"] = 1;
    $langArray[1]["value"] = "EN TEST NAME";
    
    //$rs = $lblMgr->addLabel("Test Name", $langArray);
    
    //$rslt = $lblMgr->updateLabel(21, $langArray);
    
    //printObject($rs);
    
    //printObject($lblMgr->getLabel(1));
    
    //printObject($lblMgr->getLabel(2));
    
    //printObject($lblMgr->getLabel(3));
    
    print "<pre>"; 
    print_r(LabelManager::$labels); 
    print "</pre>";

?>